|
|
|
|
|
|
|
Another control that enables you to present lists to the users is the ComboBox control. The combo box can be used in three different forms: |
|
|
|
|
|
|
|
|
The drop-down combo box. Presents the users with a text box combined with a drop-down list (see Figure 4.12). The users can either select an item from the list portion or type an item in the text box portion. |
|
|
|
|
|
|
|
|
The simple combo box. Displays a text box and a list that doesn't drop down (see Figure 4.13). As with the drop-down combo box, the users can either select an item from the list portion or type an item in the text box portion. |
|
|
|
|
|
|
|
|
The drop-down list. Displays a drop-down list box from which the users can make a choice (see Figure 4.14). The users cannot enter items that are not in the list. |
|
|
|
|
|
|
|
|
|
A new type of combo box, the ImageCombo, was added in Visual Basic version 6.0. This control is discussed in Chapter 12, "Microsoft Common Controls."  |
|
|
|
|
|
|
|
|
|
|
Figure 4.12
With the drop-down combo box, you can select an item from
the drop-down list or type an alternative item in the text box. |
|
|
|
|
|
|
|
|
Figure 4.13
This simple combo box works like the drop-down
combo box, except the list is always displayed. |
|
|
|
|
|